<script type="text/javascript" src="{JS_PATH}108wo/zeroclipboard/ZeroClipboard.js"></script>
<script type="text/javascript">
$(function(){
	var clip = null;

	ZeroClipboard.setMoviePath('{JS_PATH}108wo/zeroclipboard/ZeroClipboard10.swf');
	// setup single ZeroClipboard object for all our elements
	clip = new ZeroClipboard.Client();
	clip.setHandCursor( true );
	
	// assign a common mouseover function for all elements using jQuery
	$('a.orderid').mouseover( function() {
		// set the clip text to our innerHTML
		clip.setText( this.innerHTML );
		
		// reposition the movie over our element
		// or create it if this is the first time
		if (clip.div) {
			clip.receiveEvent('mouseout', null);
			clip.reposition(this);
		}
		else clip.glue(this);
		
		// gotta force these events due to the Flash movie
		// moving all around.  This insures the CSS effects
		// are properly updated.
		clip.receiveEvent('mouseover', null);
	});
	clip.addEventListener('complete', function (client, text) {
		alert("复制成功");
	});
})
</script>
<div class="right">
	<div class="contact">
		<a target="blank" href="http://wpa.qq.com/msgrd?V=1&Uin=406344354&Site=eydns.com&Menu=yes" class="qq1">图集管理</a>
		<a target="blank" href="http://wpa.qq.com/msgrd?V=1&Uin=406344354&Site=eydns.com&Menu=yes" class="qq2">咨询求助</a>
		<a target="blank" href="http://wpa.qq.com/msgrd?V=1&Uin=406344354&Site=eydns.com&Menu=yes" class="msn">中心客服</a>
		<a href="{APP_PATH}index.php?m=member&c=index&a=share" class="createBtn share" onclick="return false;">分享给好友</a>
	</div>
	<div class="listBar">
		<h2><a href="{APP_PATH}index.php?m=order&c=index&a=lists">我的清单</a></h2>
		<ul>
			<table cellpadding="0" cellspacing="0" id="orderList">
			{php $orderList = getTopOrder(3)}
			{loop $orderList $v}
				<tr>
					<td>[<a href="javascript:void(0);" title="复制清单号" class="num orderid">{$v[oid]}</a>]</td>
					<td><a target="blank" href="{APP_PATH}index.php?m=order&c=order_detail&a=lists&id={$v[id]}" title="{$v[title]}" style="display:block;width:126px; overflow:hidden">{$v[title]}</a></td>
					<td><input type="checkbox" name="selected" value="{$v[id]}" {if $v[selected] == 1} checked="checked"{/if} /></td>
				</tr>
			{/loop}
			</table>
			<a href="{APP_PATH}index.php?m=order&c=index&a=add" class="createBtn">创建清单</a>
			<div class="icon"></div>
		</ul>
	</div>
	{if $arrparentid[2]!=16}<!--产品库栏目取消产品库右边二、三级栏目的显示-->
	<div class="cate">
	{if count($arrparentid) >= 3}
		{php $parent_cat = getCat($arrparentid[2])}
	{else}
		{if $catid==7} 
			{php $catid=13}
		{/if}
		{php $parent_cat = getCat($catid)}
	{/if}
		<h2><a href="javascript:void(0);" class="tabs current" rel="content1">全部{$parent_cat[catname]}</a><a href="javascript:void(0);" class="tabs"  rel="content2">问与答</a></h2>
		<div id="content1">
		{if count($arrparentid) >= 3}
		{pc:content action="category" catid="$arrparentid[2]" num="25" siteid="$siteid" order="listorder ASC"}
		{else}
		{pc:content action="category" catid="$catid" num="25" siteid="$siteid" order="listorder ASC"}
		{/if}
			
				{loop $data $r}
				<h3><span>{$r[catname]}</span></h3>
				{if $catid==7}
					{pc:content action="category" catid="$r[catid]" num="25" siteid="$siteid" order="listorder ASC" return="data1"}
					<ul>
						{loop $data1 $r1}
							<li><a href="{$r1[url]}">{$r1[catname]}</a></li>
						{/loop}
					</ul>
					{/pc}
				{else}
					{php $parentbrands = getparentBrands($r[catid])}
					{if $parentbrands}
					<ul>
						{loop $parentbrands $b}
							<li><a href="{$r[url]}?bid={$b[id]}">{$b[name]}</a>({getProductNum($r[catid], 13, $b[id])})</li>
						{/loop}
					</ul>
					{/if}
				{/if}
				<dl class="clearit"></dl>
				{/loop}
				</ul>
			{/pc}
		</div>
		<div id="content2" style="display:none">
			<!--
			<h3><span>Tags</span></h3>
			-->
			<ul style="display:inline;">
				{php $myhelp_data = getTopMyhelp()}
				{loop $myhelp_data $v}
				<li>[{date('m-d', $v[inputtime])}]<a href="{APP_PATH}index.php?m=myhelp&id={$v[id]}&productid={$v[productid]}" target="_blank" title="{$v[title]}">{str_cut($v[title], 36)}</a> <span>点击{$v[hits]}</span></li>
				{/loop}
			</ul>
			<br class="clearit" />
		</div>
	</div>
	{/if}	
</div>